package org.zjx.analysis.analyze.tap;


import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class STCTabAnalysis extends BaseTabAnalysis {

    public STCTabAnalysis(IWindow window) {
        super("石头城", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 565, 356);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(111, 89, 688, 504);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(268, 24, 309, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACoAAAAOCAYAAABZ/o57AAAD4UlEQVR4Xo1VC1MTZxTNH+vw8FFnakHSoEJqhbEBdawvDFTGQcSIgxp5FDENgUgKZVwDRB4RlZQpEQpYAjWKChREhcYAFom0dDrj7d6z7LqbpANn5szee7/73Xu+x+7qEgy1pOYn+s0zQW+LiTEv2/wxMeSv99i6t45OX7yr6StzW2Y9NbgD9HmWi6pv/KLEdYcKb9Ng4BUNjW6OnGvKb4NIZqXjATEO5LVCzN7DN+Fzw2gRMvPOe5ETHWfmFLRhLO3rRjxvdQYloQWl3RReWqWFdS79+RcSGHJMzfDiezpV0qkITU6308OxV8ivrBugL48KsD81OmNEJKY7QPOFbuSwzYveCE5hhHRJBjupWSNuNyM1qwF+osEWlyzyj/AKWSp88M9a79F3zn7ad7QZ83cYHZq6auZbpB1loUJHEHaRtYfOXrlPFbXSCRVb78NnGkyNWqEsjjH6eH5DkcwG4VfkD47MUvLu7zGmFsp+tEiurUaPf4pCCxHauqcWp8NPRkqWk6y2Pmr2jGGeLildLCZye4ZdmZyT7xbvWlMMvzC5pOb6awpzT0lH7R+awZjJ7IavXpjcg5ma7aTrLunUDuQJ1NL1SOnLEDp+w5M1TM0s0vDoS8zTcSFe/fLK35oJ/4eevglKSKuO4RZDDYRfqvYhL/oU1DRbupScVm8QV2jLHjuNT74BGWXXevF0uUeQpztR5EFAhinvpmbH1ByfCKEo25WOPs28zaCwtAtz80s64LN956enNDm9ADsQfE1jT+YoFI6Qf3AaObIeXXNbgOZD7xBgZBx0YUDeKbU9FJiFULY/yxR35pxHbOohc0k7WF0vvQhC+yjEyHHY59pp++7rGqE5Ys/g03mI4vj07BL1PpikVtV1kDdJl5RWRcy0LOkSZ+TegB+Pw6LQUPidaJeDCbsqFHvXfhvmf/hAtNMo2V7fE0rWx9Y5b5U+TzK4blOL9GI6mgbo+JkW2I3uh/TVkR8o+xi/9TFC65Tm0RwKvNAIlXn8jPRCMVL21SBWfLlTiWUfc63nVkE8Y+2ff3EaDD4BOXa44GMtlzBMPw9M0vOpNyxUarbTWIPB4Pgc3e0dj0vGy7m3lJh6Bdx/xCnerzDib5dXUUO9APZXImsYL63oRuxbi0dc2C3YXt9jjLFtPFQvbsQM/IXFCAm3R2C/X12j3v6Jj0KZPv8z8c8TEf9A8TkfWiZzsRsi63/sRyFGWVW3Ij4eB4Z/R57lapfSK1lfjlhRWQd8GRcrpQWpYyeL3OLnKU7hDZlyiTJz7VRoaYENRudE8UK5l4wHHZrYN6ebY/LU3GYoJ9MJF+z/APJkeWJqs3QjAAAAAElFTkSuQmCC");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
